<?php
require_once 'Sabai/Model/PageNavigator.php';

class Sabai_Template_Default_Helper_PageNav extends Sabai_Template_Default_Helper
{
    function execute(&$pages, $currentPage, $linkUrl =array(), $pageVar = 'page', $pageSummaryText = 'Page %1$d of %2$d')
    {
        $nav =& new Sabai_Model_PageNavigator($pages, $currentPage, $linkUrl, $pageVar, $pageSummaryText);
        return $nav->process();
    }
}